home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
UNIVERSE
/
SHARED.DIR
/
01016_Script_sbt-retracexxx
< prev
next >
Wrap
Text File
|
1995-11-21
|
1KB
|
51 lines
-- standard button trios
--property myNormal, myRollover, myPressed, myChannel, myScript, ancestor
--on birth me, no, sp, ro, pr, sc
-- set ancestor to birth(script "sbt",no, sp, ro, pr, sc)
-- set myNormal to (the number of cast no)
-- set myRollover to (the number of cast ro)
-- set myPressed to (the number of cast pr)
-- set myScript to sc
-- set myChannel to integer(sp)
-- return me
--end
on sbtrpress theLine
global gSBTPress
asdf
set myChannel = integer(item 4 of theLine)
set myPressed = integer(item 6 of theLine)
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myPressed
updateStage
puppetSprite myChannel, false
set t = the ticks
repeat while (t+30) > the ticks
end repeat
if the mouseDown then
set gSBTPress = 1
--put ">>> internal press-> doscript"
doScript ancestor
end if
end
on sbtrdoScript me
global gSBTPress
if gSBTPress then
--put ">>> sbt retrace exiting on an internal call"
set gSBTPress = 0
exit
end if
doScript ancestor
end doScript